<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="st" uri="/as-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">

		<title>My JSP 'teacherList.jsp' starting page</title>

		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

	</head>




		<script type="text/javascript">
   function del()
  {
    if(confirm("确定删除该教师？"))
   {
      return true;
   }
       return false;
  }

   </script>


	<body>

			<jsp:include page="head.jsp"></jsp:include>
			<h1>
				<font color="red"><center>
						本课程的教师列表

					</center> </font>
			</h1>
			<!--
		<table border="1" width="80%" align="center">
			-->
			<table border="10%" width="80%" align="center">
				<tr>
					<td>
						课程班
					</td>
					<td>
						教师
					</td>

					<td>
						删除
					</td>

				</tr>


				<tr>

					<s:iterator value="list" id="usme">
						<td>
							<s:property value="#usme.course.name" />
						</td>

						<td>
							<s:property value="#usme.name" />
						</td>
						<td>
							<a
								href="admin/deleteTeacher.action?teacher.teacherId=<s:property value='teacherId'/>&courseId=<s:property value='courseId'/>"
								onclick="return del();">删除</a>
						</td>
						<tr />
					</s:iterator>
			</table>
			<br>
			<center>
				<st:pageCode
					url="admin/teacherList.action?courseId=${courseId}&pageNo=:pageNo"
					maxPageNo="${maxPageNo}" currentPageNo="${pageNo}" />
			</center>
			<br />
			<p>
				点击
				<a href="javascript:history.go(-1);">返回</a>上一页面
			</p>
		</body>
</html>
